(function() {
    config = {
        // apiHost:'http://47.94.16.190/',
        apiHost:'http://app.xuexueclub.cn/',
        restRoute: {
            //消息列表
            getMessageList:'study/public/api/Message/getMessageList',
            //是否有未读
            isUnRead:'study/public/api/Message/isUnRead',
            //消息详细列表
            getMessageDetail:'study/public/api/Message/getMessageDetail',
            //关于我们
            getAboutus:'study/public/api/System/get_aboutus',
            //常见问题
            getqaList:'study/public/api/System/get_qa_List',
            //意见反馈
            feedBack:'study/public/api/feed_back/fankui',
            //注册
            register:'study/public/api/user/register',
            //发送短信(未注册账号也可以收到)
            fastLoginSms:'study/public/api/Sms/sendSms',
            //发送短信(未注册账号提示未注册)
            sendSms:'study/public/api/Sms/fastLoginSms',
            //密码登录
            login:'study/public/api/user/login',
            //短信登录
            loginSms:'study/public/api/user/loginSms',
            //热门词
            gethotsearch:'study/public/api/System/get_hot_search',
            //上传头像
            uploadPic:'study/public/api/user/uploadPic',
            //查用户信息
            getUserInfo:'study/public/api/User/getUserInfo',
            //完善用户信息
            finishUserInfo:'study/public/api/User/finishUserInfo',
            //我购买的视频
            getMyVideo:'study/public/api/Pay/getMyVideo',
            //轮播图
            BannerList:'study/public/api/Banner/BannerList',
            //类目
            Leaderlist:'study/public/api/Leader/getList',

            getListpid:'study/public/api/Leader/getList/module/2',
            //视频列表
            videogetlist:'study/public/api/Video/getlist',
            //观看历史
            getVideoUserHistory:'study/public/api/Video/getVideoUserHistory',
            //支付宝支付
            alipay:'study/public/api/pay/getOrder',
            //微
            // wxpay:'study/public/api/pay/getOrder/_uid/1/cash/1/type/21/pay_id/1',
            //收藏列表
            getFavoriteList:'study/public/api/Video/getFavoriteList',
            //密码修改密码
            modifyPassword:'study/public/api/User/modifyPassword',
            //手机验证码修改密码
            rePassword:'study/public/api/User/rePassword',
            //解绑手机号，绑定手机号
            modifyMobile:'study/public/api/User/modifyMobile',
            //搜索
            search:'study/public/api/video/search',
            //观看历史
            // getVideoUserHistory:'study/public/api/Video/getVideoUserHistory',
            //删除观看历史
            delVideoUserHistory:'study/public/api/Video/delVideoUserHistory',
            // 是否签到
            isSign:'study/public/api/Score/isSign',
            // 获取学分规则
            getRule:'study/public/api/Score/getRule',
            // 分享获取积分(type 1 签到 2视频 3 app)
            share:'study/public/api/Score/share',
            // vip
            getVipManager:'study/public/api/vip/getVipManager',
            // 收藏
            addFavorite:'study/public/api/Video/addFavorite',
            // 取消收藏
            unFavorite:'study/public/api/Video/unFavorite',
            // 第三方注册
            registerThird:'study/public/api/user/registerThird',
            // 第三方登录接口
            loginThird: 'study/public/api/user/loginThird',

            getDetail:'study/public/api/Video/getDetail',
            // 单图删除
            deleteImg:'study/public/api/Image/deleteImg',
            // 单图上传
            uploadImg:'study/public/api/Image/uploadpic',
            // 作者相关视频
            getAuthorVideo:'study/public/api/Video/getAuthorVideo',
            // 学分购买视频
            payVideoScore:'study/public/api/Score/payVideoScore',
            // 视频点赞
            zanVideo:'study/public/api/video/zanVideo',
            // 取消点赞
            unzanVideo:'study/public/api/video/unzanVideo',
            // 主打视频接口
            getMainVideo:'study/public/api/Video/getMainVideo',
            // 用户协议
            getList:'study/public/api/Proctal/getList',
            // 注销接口
            unlogin:'study/public/api/user/unlogin',
            // 验证手机号验证码与用户是否存在
            getMobileSms:'study/public/api/user/getMobileSms',
            // 查第三方注册的接口
            getUserInfoThird:'study/public/api/user/getUserInfoThird',
            // 查第三方注册的接口
            updateWatchTime:'study/public/api/Video/updateWatchTime',
            //视频总时长/video_id/192/time/10
            updateVideoTime:'study/public/api/video/updateVideoTime',
            //get_qa_detail
            get_qa_detail:'study/public/api/System/get_qa_detail',

            getUserInfoByMobile:'study/public/api/User/getUserInfoByMobile',
            sendSms2:'study/public/api/Sms/sendSms2',
            getFenxiangVideo:'study/public/api/Video/getFenxiangVideo'
            // study/public/api/Sms/sendSms2/msg/8782812/mobile
            //http://47.94.16.190/study/public/api/User/getUserInfoByMobile?mobile=8618730568530
        },

    }
    return config;
    // window.$config = config;
}())
